package com_game.itheima;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        // 数值拆分
//        int num = 456;
        int num = new Scanner(System.in).nextInt();  // 输入内容
        int ge = num % 10;  // 456%10 = 45..6
        int shi = num / 10 % 10;  // 456/10 = 45..6 ==> 45%10 = 4..5
        int bai = num / 100 % 10;  // 456/100 = 4..56 ==> 4%10 = 4..0

        // 打印结果
        System.out.println("数值" + num + "，的百位为：" + bai + "，十位为：" + shi + "，个位为：" + ge);
//        System.out.println(String.format("数值，的百位为：，十位为：  ，个位为：", num, bai, shi, ge));

    }
}











